package com.itheima.wms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.wms.common.service.ICrudService;
import com.itheima.wms.dto.OutboundListBatchDTO;
import com.itheima.wms.entity.OutboundListEntity;
import com.itheima.wms.vo.OutboundListDetailVO;
import com.itheima.wms.vo.OutboundListSumVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 业务接口
 * 出库清单
 * </p>
 */
public interface OutboundListService extends ICrudService<OutboundListEntity> {

    Boolean saveBatchByStockIds(OutboundListBatchDTO outboundListBatchDTO);

    IPage<OutboundListDetailVO> pageDetail(Page<OutboundListDetailVO> page, Map data);

    OutboundListSumVO getSumByMasterId(Long masterId);

    List<Long> stockIds(Map data);

    OutboundListSumVO sumOutboundListDetail(Map<String, Long> masterId);

    void cancelBatch(List<OutboundListEntity> outboundListEntities);
}
